package com.wltjack.common;

import lombok.Data;

/**
 * 客户端响应
 */
@Data
public class Response<T> {

    private int code;

    private T data;

    private String message;

    public Response(T data) {
        this.code = 0;
        this.message = "成功";
        this.data = data;
    }

    public Response(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

}
